<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="b" uri="/bbs-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'index.jsp' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<!--[if lt IE 7]> 
	<script type="text/javascript" src="js/ie6png.js"></script>
	<![endif]-->

		<link rel="stylesheet" type="text/css" href="css/footer.css">
		<link rel="stylesheet" type="text/css"
			href="admin/css/backstageIndex.css">
		<script type="text/javascript" src="js/jquery.js">
</script>

		<script type="text/javascript">
function showAddMotherBoard_edit() {
	$("#add_motherboard_edit").css("display", "inline");
}
function hideAddMotherBoard_edit() {
	$("#add_motherboard_edit").css("display", "none");
}
function showAddSubBoard_edit() {
	$("#add_board_edit").css("display", "inline");
}
function hideAddSubBoard_edit() {
	$("#add_board_edit").css("display", "none");
}
function showAddMaster_edit(id) {
var i=".contentRight3-2-1-5-3"+id;
	$(i).css("display", "inline");

}
function hideAddMaster_edit(id) {
var i=".contentRight3-2-1-5-3"+id;
	$(i).css("display", "none");

}
</script>
	</head>

	<body>
		<div id="container">
			<div id="header">
				<div id="headerTop">
					<div id="headerTopLeft">
						<a><img src="images/logo.png" /> </a>
					</div>
				</div>
			</div>
			<div id="content">
				<div id="contentLeft">
					<ul>
						<li>
							<a href="boardDisplayAction_lookAllMotherBoard">板块管理</a>
						</li>
						<li>
							<a href="admin/backstageUserManager.jsp">用户管理</a>
						</li>
						<li>
							<a href="#">日志管理</a>
						</li>
						<li>
							<a href="#">邮件管理</a>
						</li>
					</ul>
				</div>
				<div id="contentRight">
					<div id="contentRight1">
						<span>板块管理</span>
					</div>
					<div id="contentRight2">
						<div id="contentRight2-1">
							<span id="contentRight2-1-1">主板面设置</span>
							<span id="contentRight2-1-2"><a
								onclick="showAddMotherBoard_edit()">添加主面板</a> </span>
						</div>
						<form action="addBoardAction_addMotherBoard" method="post">
							<div id="add_motherboard_edit">

								<div id="add_motherboard_edit1">
									<span class="add_motherboard_edit1-0">主板面名称：</span>
									<span class="add_motherboard_edit1-0"><input type="text"
											style="text-align: left;" name="motherBoardName"> </span>
									<a id="add_motherboard_edit1-1"
										onclick="hideAddMotherBoard_edit()"></a>
								</div>
								<div id="add_motherboard_edit2">
									<span><input type="submit" value="确定" /> </span>
								</div>

							</div>
						</form>
						<div id="contentRight2-2">
							<s:iterator value="motherBoards">
								<div class="contentRight2-2-1">
									<span class="contentRight2-2-1-1"><b>主面板：</b> <s:property
											value="motherBoardName" /> </span>
									<span class="contentRight2-2-1-2"><a href="#">修改</a> </span>
									<span class="contentRight2-2-1-3"><a
										href="deleteBoardAction_deleteMotherBoard?motherBoardId=<s:property value="motherBoardId"/>">删除
									</a> </span>
									<span class="contentRight2-2-1-4"> <span><b>其子面板列表:
										</b> </span> </span>
									<s:iterator value="boards">
										<span class="contentRight2-2-1-5"> <span><s:property
													value="boardName" /> </span><span><a href="#">修改</a> </span><span><a
												href="deleteBoardAction_deleteSubBoard?boardId=<s:property value="boardId"/>">删除</a>
										</span> </span>
									</s:iterator>
								</div>
							</s:iterator>
						</div>
					</div>
					<div id="contentRight3">
						<div id="contentRight3-1">
							<span id="contentRight3-1-1">子板面设置</span>
							<span id="contentRight3-1-2"><a
								onclick="showAddSubBoard_edit()">添加子面板</a> </span>
						</div>
						<form action="addBoardAction_addSubBoard" method="post">
							<div id="add_board_edit">
								<div class="add_board_edit1">
									<span class="add_board_edit1-1">子面板名称：</span>
									<span class="add_board_edit1-2"><input name="boardName"
											style="text-align: left;" type="text" /> </span>
									<a class="add_board_edit1-3" onclick="hideAddSubBoard_edit()"></a>
								</div>
								<div class="add_board_edit2">
									<span class="add_board_edit2-1">子面板备注：</span>
									<span class="add_board_edit2-2"> <textarea rows="3"
											cols="30" name="boardSign" style="text-align: left;"></textarea>
									</span>
								</div>
								<div class="add_board_edit3">
									<span class="add_board_edit3-1">所属主面板：</span>
									<span class="add_board_edit3-2"> <select
											name="motherBoardId">
											<s:iterator value="motherBoards">
												<option value="<s:property value="motherBoardId"/>">
													<s:property value="motherBoardName" />
												</option>
											</s:iterator>
										</select> </span>
								</div>
								<div class="add_board_edit4">
									<span><input type="submit" value="确定" /> </span>
								</div>
							</div>
						</form>
						<div id="contentRight3-2">
							<s:iterator value="motherBoards">
								<s:iterator value="boards">
									<div class="contentRight3-2-1">
										<div class="contentRight3-2-1-0">
											<span class="contentRight3-2-1-1"><b>名称:</b> <s:property
													value="boardName" /> </span>
											<span class="contentRight3-2-1-2"><a href="#">修改</a> </span>
											<span class="contentRight3-2-1-3"><a
												href="deleteBoardAction_deleteSubBoard?boardId=<s:property value="boardId"/>">删除
											</a> </span>
										</div>
										<div class="contentRight3-2-1-4">
											<span class="contentRight3-2-1-4-1"> <b>说明:</b> <s:property
													value="boardSign" /> </span>
										</div>
										<div class="contentRight3-2-1-5">
											<span class="contentRight3-2-1-5-1">版主列表:</span>
											<span class="contentRight3-2-1-5-2"><a
												onclick="showAddMaster_edit(<s:property value='boardId'/>)">设置版主</a> </span>
										</div>
										<!-- 设置版主隐藏框 -->
										<form action="setBoardMaster">
											<div class="contentRight3-2-1-5-3<s:property value='boardId'/>" style="display:none;float:left;margin:8px 0 8px 0;">

												<input type="hidden" value="<s:property value='boardId'/>"
													name="boardId" />
												<span class="contentRight3-2-1-5-3-1"><input
														type="text" name="userName" style="text-align: left;" />
												</span>
												<span class="contentRight3-2-1-5-3-2"><input
														type="submit" value="确定" /> </span>
												<a class="contentRight3-2-1-5-3-3"
													onclick="hideAddMaster_edit(<s:property value='boardId'/>)"></a>

											</div>
										</form>
										<s:iterator value="boardMaster">
											<div class="contentRight3-2-1-6">
												<span class="contentRight3-2-1-6-1"><b>用户名:</b><a
													href="#"><s:property value="user.userName" /> </a> </span>
												<span class="contentRight3-2-1-6-2"><a
													href="deleteBoardMaster?boardMasterId=<s:property value='boardMasterId'/>">删除版主关系</a>
												</span>
											</div>
										</s:iterator>
									</div>
								</s:iterator>
							</s:iterator>
						</div>
					</div>
				</div>
			</div>
			<%@include file="../styleJsp/footer.jsp"%>
		</div>
	</body>
</html>
